<%--

    Copyright (C) 2009 Gero Vermaas <gero@vermaas.net>

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

--%>
<%--
  The main template into which all other content is placed. The following
  objects are available for use in templates.

   - blog                   net.sourceforge.pebble.domain.Blog
   - pebbleContext          net.sourceforge.pebble.PebbleContext
   - categories             java.util.List<net.sourceforge.pebble.domain.Category>
   - tags                   java.util.List<net.sourceforge.pebble.domain.Tag>
   - recentBlogEntries      java.util.List<net.sourceforge.pebble.domain.BlogEntry>
   - recentResponses        java.util.List<net.sourceforge.pebble.domain.Response>
   - archives               java.util.List<net.sourceforge.pebble.domain.Year>
   - pluginProperties       net.sourceforge.pebble.PluginProperties
   - authenticatedUser      net.sourceforge.pebble.security.PebbleUserDetails
--%>
<template:page>

  <div id="body">

    <%-- the RSS/Atom links --%>
    <div id="feeds">
      <template:feeds/>
    </div>

    <%-- the header, containing blog name and description --%>
    <div id="header">
      <div id="blogName"><span>${blog.name}</span></div>
      <div id="blogDescription"><span>${blog.description}</span></div>
    </div>

    <%-- the linear navigation links (e.g. < Previous | Home | Next >) --%> 
    <div id="linearNavigation">
      <template:linearNavigation/>
    </div>

    <%-- the sidebar that includes the calendar, recent blog entries, links, etc. --%>
    <div id="sidebarb">
      <sidebar:feed name="del.icio.us" url="http://del.icio.us/rss/simongbrown" maxEntries="3" showBody="true" truncateBody="true"/>

<script type="text/javascript" src="https://www.google.com/reader/ui/publisher-en.js"></script>
<script type="text/javascript" src="https://www.google.com/reader/public/javascript-sub/user/16817901595849075081/label/Shared?callback=GRC_p(%7Bc%3A%22blue%22%2Ct%3A%22My%20%5C%22Shared%5C%22%20Blogroll%22%2Cb%3A%22true%22%7D)%3Bnew%20GRC"></script>
    
<div id="twitter_div"><ul id="twitter_update_list"></ul></div>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/gerove.json?callback=twitterCallback2&count=5"></script>

</div>

    <div id="sidebar">
      <sidebar:adminPanel/>
      <sidebar:about/>
      <sidebar:navigation/>
      <sidebar:archivesByMonth/>
      <sidebar:categories/>
      <sidebar:tagCloud/>
      <sidebar:recentBlogEntries/>
      <sidebar:recentResponses/>
      <sidebar:blogSummary/>
      
      <sidebar:loginForm/>
    </div>

    <%-- the main area into which content gets rendered --%>
    <div id="content">
      <template:content/>
    </div>

    <%-- the footer, containing the "powered by" link --%>
    <div id="footer">
      <template:poweredByPebble/>
    </div>

  </div>

</template:page>